package com.by.basicservice.controller;

import com.by.toolkit.consts.GlobalConst;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping
@RestController
public class TestErrorController {

    @GetMapping("/testError")
    public Integer testError(@RequestParam String errorMsg) {
        log.error("[TestErrorController][testError] errorMsg:[{}]", errorMsg);
        return GlobalConst.ONE_INTEGER;
    }

}
